<template>
  <div>
    <Header></Header>
    <div class="admin">
      <div class="banner">
        <div class="content">
          <div class="container">
            <span class="left">
              <i>0篇</i>
              文章
            </span>
            <span class="left">
              <i>3</i>
              总阅读
            </span>
            
            <span class="right">
              <i>0</i>
              被赞
            </span>
            <span class="right">
              <i>0</i>
              订阅量
            </span>
          </div>
        </div>
      </div>
      <div class="admdin-author">
        <img src="../../assets/images/card.jpg" alt>
        <div>讨教大薯</div>
      </div>
      <div class="admdin-tab">
        <li @click="gowz" v-bind:class="{ active1: isActive1}">文章</li>
        <li @click="gosc" v-bind:class="{ active2: isActive2}">收藏</li>
        <li @click="gopl" v-bind:class="{ active3: isActive3}">评论</li>
      </div>
      <div class="admin-container">
        <img src="../../assets/images/no.png" alt v-if="show">
        <div class="wz" v-if="wzshow">
          <li></li>
        </div>
        <div class="sc" v-if="scshow">
          <div class="sc-item">
            <div class="left-f">
              <div class="content-left">
                <img src="../../assets/images/card.jpg" alt>
              </div>
              <div class="content-right">
                <h1>这组职场文案，过于真实了</h1>
                <div class="content" @click="getArticle">
                  进入命令窗口之后，输入：ipconfig/all 回车即可看到整个电脑的
                  详细的IP配置信息进入命令窗口之后，输入：ipconfig/all 回车即可看
                  到整个电脑的详细的IP 配置信息输入：ipconfig/all 回车即可看输入：ipconfig/all 回车即可看...
                </div>
                <div class="tags">
                  <span>
                    <img src="../../assets/images/logo.jpg" alt>
                  </span>
                  <span style="padding-left:10px;">大洋</span>
                  <img src="../../assets/images/rz.png" alt="" class="img">
                  <span>2018/12/12</span>
                  <span style="padding-left:50%;">
                    <i class="iconfont icon-all-shoucang3"></i>
                    208
                  </span>
                  <span>
                    <i class="iconfont icon-all-like"></i>
                    400
                  </span>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="pl" v-if="plshow">
          <div class="pl-item">
            <div class="title">
              <div>
                <i class="iconfont icon-all-wenzhang"></i>
                <span class="red">用户的反馈，是埋在深山的宝藏</span>
              </div>
              <div>
                <i class="iconfont icon-all-tubiao-"></i>
                <span>2018-12-20 17:08:03</span>
              </div>
            </div>
            <div class="content">
              <span>懒得看了</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Header from "@/common/Header/Header";
export default {
  name: "admin",
  data() {
    return {
      show: true,
      wzshow: false,
      scshow: false,
      plshow: false,
      isActive1: true,
      isActive2: false,
      isActive3: false
    };
  },
  methods: {
    gowz() {
      this.show = true;
      this.wzshow = false;
      this.scshow = false;
      this.plshow = false;
      this.isActive1 = true;
      this.isActive2 = false;
      this.isActive3 = false;
    },
    gosc() {
      this.show = false;
      this.wzshow = false;
      this.scshow = true;
      this.plshow = false;
      this.isActive1 = false;
      this.isActive2 = true;
      this.isActive3 = false;
    },
    gopl() {
      this.show = false;
      this.wzshow = false;
      this.scshow = false;
      this.plshow = true;
      this.isActive1 = false;
      this.isActive2 = false;
      this.isActive3 = true;
    }
  },
  components: {
    Header
  }
};
</script>
<style lang="scss" scoped>
.admin {
  .banner {
    margin-top: 70px;
    width: 100%;
    height: 240px;
    // z-index: 1000;
    background-image: url(../../assets/images/banner2.png);
    background-position: 50%;
    background-size: cover;
    position: relative;
    .content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      line-height: 1.6;
      .container {
        width: 800px;

        span {
          display: inline-block;
          width: 150px;
          text-align: center;
          margin-bottom: 15px;
          font-size: 14px;
          color: hsla(0, 0%, 100%, 0.8);
          //   margin-left:20px;

          i {
            display: block;
            font-weight: 700;
            font-style: normal;
            font-size: 18px;
            color: #fff;
          }
        }
        .right {
          float: right;
        }
        .left {
          float: left;
        }
      }
    }
  }
  .admdin-author {
    img {
      //   display: block;
      height: 128px;
      width: 128px;
      border-radius: 100%;
      border: 4px solid #fff;
      margin-top: -60px;
      margin-bottom: 10px;
      // z-index: 1001;
      position: relative;
    }
    div {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 10px;
    }
  }
  .admdin-tab {
    width: 250px;
    height: 50px;
    margin: 0 auto;
    list-style: none;
    padding-left: 40px;
    padding-right: 40px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-around;
    li {
      margin: 10px;
      line-height: 40px;
      cursor: pointer;
      margin-bottom: -2px;
      border-bottom: 2px solid transparent;
    }
    .active1 {
      //    border-bottom: 1px solid #5079b7;
      color: red;
    }
    .active2 {
      //    border-bottom: 1px solid #5079b7;
      color: red;
    }
    .active3 {
      //    border-bottom: 1px solid #5079b7;
      color: red;
    }
  }
  .admin-container {
    width: 850px;
    margin: 0 auto;
    margin-top: 20px;
    img {
      width: 200px;
      height: 190px;
    }
    .sc {
      width: 850px;
      .left-f {
        width: 95%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #f0f0f0;
        height: 190px;
        .content-left {
          width: 30%;
          height: 150px;
          margin-top: 20px;
          img {
            display: block;
            width: 100%;
            height: 150px;
            border-radius: 10px;
          }
        }
        .content-right {
          width: 68%;
          height: 160px;
          margin-top: 20px;
          h1 {
            font-size: 16px;
            font-weight: 900;
            text-align: left;
          }
          .content {
            text-align: left;
            font-size: 12px;
            margin-top: 10px;
            line-height: 2;
          }
          .tags {
            text-align: left;
            margin-top: 10px;
            .img{
                width: 10px;
                height: 10px;
            }
            span {
              font-size: 12px;
              color: #b9b9b9;
              img {
                width: 30px;
                height: 30px;
                border-radius: 50%;
              }
            }
          }
        }
      }
    }
    .pl {
      width: 850px;
      .pl-item {
        border-bottom: 1px solid #eee;
        font-size: 14px;
        line-height: 1.8;
        padding-bottom: 15px;
        padding-top: 15px;
        .title {
          display: flex;
          justify-content: space-between;
          color: #a5aab0;
          .red:hover {
            color: red;
          }
        }
        .content {
          border-radius: 5px;
          padding: 10px;
          color: #666;
          text-align: left;
              background-color: #f2f5fb;


        }
      }
    }
  }
}
</style>


